﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace GesturePlayer.SongLibrary
{
    class Album
    {
        private Image _cover;


        internal Artist Artist { get; set; }
        internal string CoverPath { get; set; }

        public Image Cover
        {
            get
            {
                if (CoverPath != null && _cover == null)
                {
                    _cover = Image.FromFile(CoverPath);
                }

                return _cover;
            }
        }

        public string Name { get; set; }
        public List<Title> Titles { get; set; }
    }
}
